﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="main_dataQuery_GTQX.aspx.cs" Inherits="main_dataQuery_GTQX" %>
<%@ Register assembly="dotnetCHARTING" namespace="dotnetCHARTING" tagprefix="dotnetCHARTING" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Charting" tagprefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
    <link rel="stylesheet" type="text/css" href="css/reset-fonts-grids.css" />
    <link rel="stylesheet" type="text/css" href="css/menu.css" />
    <link rel="stylesheet" type="text/css" href="css/layout.css" />
    <script type="text/javascript" language="javascript">
    function DoubleClick(sender, eventArgs) {
        var node = eventArgs.get_node();
        
        if(node.get_level()==1){ 
          
         
            var label_towerName = document.getElementById("<%= Label_TowerName.ClientID %>");
            label_towerName.innerText = node.get_text();
            
            var label_lineName = document.getElementById("<%= Label_LineName.ClientID %>");
            label_lineName.innerText = node.get_parent().get_text()+" >> ";
            
            
            var hiddenField_towerName = document.getElementById("<%= HiddenField_TowerName.ClientID %>");
            hiddenField_towerName.value = node.get_text();
            
            var hiddenField_lineName = document.getElementById("<%= HiddenField_LineName.ClientID %>");
            hiddenField_lineName.value = node.get_parent().get_text();
            
            var manager = GetRadWindowManager();
            var treeWindow = manager.getWindowByName("TreeWindow");
            treeWindow.hide();
        }
    }
    </script>


</head>
<body>
    <form id="form1" runat="server">
    <div id="Div1" class="yui-t7" style="width: 1200px; margin: 0 auto; padding: 0 10px;">
        <div id="Div2">
            <div class="yui-b">
                <div class="yui-g">
                    <table cellpadding="0" cellspacing="0" class="table_layout">
                        <tr>
                            <td class="td_t_l">
                            </td>
                            <td class="td_t">
                            </td>
                            <td class="td_t_r">
                            </td>
                        </tr>
                        <tr>
                            <td class="td_l">
                                &nbsp;
                            </td>
                            <td>
                                <div class="div_search_top">
                                    <table class="table_search_top">
                                        
                                    <tr>
                                    <td rowspan="2" class="td_s_l">
                                    <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click" >请选择设备:</asp:LinkButton>
                                    <asp:Label ID="Label_LineName" runat="server" ForeColor="#FAAC58" Text=""></asp:Label>
                                        <asp:HiddenField ID="HiddenField_LineName" runat="server" />
                                    <asp:Label ID="Label_TowerName" runat="server" ForeColor="#FAAC58" Text=""></asp:Label>
                                        <asp:HiddenField ID="HiddenField_TowerName" runat="server" />
                                    <telerik:RadScriptManager
                                        ID="RadScriptManager1" runat="server">
                                    </telerik:RadScriptManager>
                                    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Web20" 
                                            Behavior="Default" InitialBehavior="None" 
                                            ondatabinding="LinkButton1_Click">
                                        <Windows>
                                            <telerik:RadWindow ID="TreeWindow" runat="server" Behavior="Close, Move" 
                                                Height="260px" InitialBehavior="None" Skin="Web20" Width="260px" 
                                                Behaviors="Close, Move" VisibleStatusbar="False" VisibleTitlebar="False" 
                                                Left="15px" Top="15px" 
                                                >
                                                <ContentTemplate>
                                                <div class="div_search_tree_window">
                                                <div class="div_search_tree_window_u">请选择一台装置：
                                                </div>
                                                <div class="div_search_tree_window_d">
                                                <telerik:RadTreeView ID="RadTreeView1" runat="server" Skin="Windows7" OnClientDoubleClick="DoubleClick">
                                                
                                                </telerik:RadTreeView>
                                                </div>
                                                </div>
                                                </ContentTemplate>
                                            </telerik:RadWindow>
                                        </Windows>
                                    </telerik:RadWindowManager>
                                    </td>
                                    <td class="td_s_m">开始时间:<telerik:RadDatePicker ID="RadDatePicker1" Runat="server" 
                                            Culture="zh-CN" SelectedDate="2011-03-17">
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>

<DateInput DisplayDateFormat="yyyy/M/d" DateFormat="yyyy/M/d" SelectedDate="2011-03-17"></DateInput>
                                    </telerik:RadDatePicker></td>
                                    <td class="td_s_r">
                                        <asp:LinkButton ID="LinkButton2" runat="server" CssClass="a_btn" Text="装置历史数据" 
                                            onclick="LinkButton2_Click"><em>装置历史数据</em></asp:LinkButton></td>
                                    </tr>
                                    <tr>
                                    <td>结束时间:<telerik:RadDatePicker ID="RadDatePicker2" runat="server" 
                                            Culture="Chinese (People's Republic of China)" SelectedDate="2011-03-20">
                        
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>

<DateInput DisplayDateFormat="yyyy/M/d" DateFormat="yyyy/M/d" SelectedDate="2011-03-20"></DateInput>
                        
                                    </telerik:RadDatePicker></td>
                                    <td>
                                        <asp:LinkButton ID="LinkButton3" runat="server" CssClass="a_btn" Text="装置历史曲线" 
                                            onclick="LinkButton3_Click"><em>装置历史曲线</em></asp:LinkButton>
                                         <asp:LinkButton ID="LinkButton4" runat="server" CssClass="a_btn" Text="导出表格" 
                                            onclick="LinkButton4_Click" ><em>导出表格</em></asp:LinkButton>
                                        </td>
                                    </tr>
                                    </table>
                                   
                                </div>
                                <div class="div_date">
                                    <telerik:RadGrid ID="RadGrid1" runat="server" 
                                        GridLines="None" Skin="Web20" AllowPaging="True" 
                                         PageSize="6" onpageindexchanged="RadGrid1_PageIndexChanged" 
                                        onpagesizechanged="RadGrid1_PageSizeChanged" AutoGenerateColumns="False" 
                                        onitemdatabound="RadGrid1_ItemDataBound">
                                        
                                        <HeaderStyle HorizontalAlign="Left" Wrap="False" />
                                        
                                        <PagerStyle AlwaysVisible="True" />
                                        
<MasterTableView>
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>

<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <telerik:GridBoundColumn DataField="线路名称" HeaderText="线路名称" UniqueName="线路名称">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="杆塔名称" HeaderText="杆塔名称" UniqueName="杆塔名称">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="采样时间" HeaderText="采样时间" UniqueName="采样时间">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="顺线倾斜角" HeaderText="顺线倾斜角" UniqueName="顺线倾斜角">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="顺线倾斜角_ABNORMAL" HeaderText="顺线倾斜角_ABNORMAL" UniqueName="顺线倾斜角_ABNORMAL" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="横向倾斜角" HeaderText="横向倾斜角" UniqueName="横向倾斜角">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="横向倾斜角_ABNORMAL" HeaderText="横向倾斜角_ABNORMAL" UniqueName="横向倾斜角_ABNORMAL" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="顺线倾斜度" HeaderText="顺线倾斜度" UniqueName="顺线倾斜度">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="顺线倾斜度_ABNORMAL" HeaderText="顺线倾斜度_ABNORMAL" UniqueName="顺线倾斜度_ABNORMAL" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="横向倾斜度" HeaderText="横向倾斜度" UniqueName="横向倾斜度">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="横向倾斜度_ABNORMAL" HeaderText="横向倾斜度_ABNORMAL" UniqueName="横向倾斜度_ABNORMAL" Visible="false">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="综合倾斜角" HeaderText="综合倾斜角" UniqueName="综合倾斜角">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="综合倾斜角_ABNORMAL" HeaderText="综合倾斜角_ABNORMAL" UniqueName="综合倾斜角_ABNORMAL" Visible="false">
        </telerik:GridBoundColumn>
       
    
    </Columns>


<PagerStyle AlwaysVisible="True"></PagerStyle>
</MasterTableView>
                                        
                                    </telerik:RadGrid>
                                    <dotnetCHARTING:Chart ID="Chart1" runat="server"  Mentor=false >
                                    </dotnetCHARTING:Chart>
                                    <dotnetCHARTING:Chart ID="Chart2" runat="server"   Mentor=false>
                                    </dotnetCHARTING:Chart>
                                </div>
                            </td>
                            <td class="td_r">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="td_b_l">
                            </td>
                            <td class="td_b">
                            </td>
                            <td class="td_b_r">
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
   
                        
                 
    </form>
</body>
</html>
